home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / VISUALBA / 3CTRLS.ZIP / SPLITTER.FRM < prev    next >
Text File  |  1993-10-05  |  7KB  |  204 lines

  1. VERSION 2.00
  2. Begin Form Splitter 
  3.    BackColor       =   &H00C0C0C0&
  4.    Caption         =   "Resize controls using the colored splitter bars"
  5.    Height          =   4185
  6.    Left            =   480
  7.    LinkTopic       =   "Form1"
  8.    ScaleHeight     =   3720
  9.    ScaleWidth      =   8415
  10.    Top             =   1260
  11.    Width           =   8595
  12.    Begin VideoSoftElastic VSElastic1 
  13.       Align           =   5  'Fill Container
  14.       AutoSizeChildren=   2  'Uneven Horizontal
  15.       BackColor       =   &H0000FF00&
  16.       BorderWidth     =   0
  17.       Height          =   3720
  18.       Left            =   0
  19.       Splitter        =   1  'Yes (with uneven spacing)
  20.       TabIndex        =   0
  21.       Top             =   0
  22.       Width           =   8415
  23.       Begin VideoSoftElastic VSElastic3 
  24.          AutoSizeChildren=   1  'Even Horizontal
  25.          BackColor       =   &H00C0C0C0&
  26.          BevelOuter      =   1  'Raised
  27.          BevelOuterWidth =   1
  28.          Height          =   3720
  29.          Left            =   2655
  30.          TabIndex        =   14
  31.          Top             =   0
  32.          Width           =   2475
  33.          Begin FileListBox File1 
  34.             Height          =   3540
  35.             Left            =   90
  36.             TabIndex        =   15
  37.             Top             =   90
  38.             Width           =   2295
  39.          End
  40.       End
  41.       Begin VideoSoftElastic VSElastic2 
  42.          AutoSizeChildren=   4  'Uneven Vertical
  43.          BackColor       =   &H00C0C0C0&
  44.          BevelOuter      =   1  'Raised
  45.          BevelOuterWidth =   1
  46.          Height          =   3720
  47.          Left            =   0
  48.          TabIndex        =   11
  49.          Top             =   0
  50.          Width           =   2565
  51.          Begin DirListBox Dir1 
  52.             Height          =   2955
  53.             Left            =   90
  54.             TabIndex        =   12
  55.             Top             =   495
  56.             Width           =   2385
  57.          End
  58.          Begin DriveListBox Drive1 
  59.             Height          =   315
  60.             Left            =   90
  61.             TabIndex        =   13
  62.             Top             =   90
  63.             Width           =   2385
  64.          End
  65.       End
  66.       Begin VideoSoftElastic VSElastic4 
  67.          AutoSizeChildren=   4  'Uneven Vertical
  68.          BackColor       =   &H0000FF00&
  69.          BorderWidth     =   0
  70.          Height          =   3720
  71.          Left            =   5220
  72.          Splitter        =   1  'Yes (with uneven spacing)
  73.          TabIndex        =   1
  74.          Top             =   0
  75.          Width           =   3195
  76.          Begin VideoSoftElastic VSElastic6 
  77.             AutoSizeChildren=   3  'Even Vertical
  78.             BackColor       =   &H00C0C0C0&
  79.             BevelOuter      =   1  'Raised
  80.             BevelOuterWidth =   1
  81.             Height          =   2985
  82.             Left            =   0
  83.             TabIndex        =   6
  84.             Top             =   0
  85.             Width           =   3195
  86.             Begin CommandButton Command1 
  87.                Caption         =   "&Colors"
  88.                FontBold        =   0   'False
  89.                FontItalic      =   0   'False
  90.                FontName        =   "MS Sans Serif"
  91.                FontSize        =   8.25
  92.                FontStrikethru  =   0   'False
  93.                FontUnderline   =   0   'False
  94.                Height          =   645
  95.                Index           =   0
  96.                Left            =   90
  97.                TabIndex        =   10
  98.                Top             =   90
  99.                Width           =   3015
  100.             End
  101.             Begin CommandButton Command1 
  102.                Caption         =   "&Fonts"
  103.                FontBold        =   0   'False
  104.                FontItalic      =   0   'False
  105.                FontName        =   "MS Sans Serif"
  106.                FontSize        =   8.25
  107.                FontStrikethru  =   0   'False
  108.                FontUnderline   =   0   'False
  109.                Height          =   630
  110.                Index           =   1
  111.                Left            =   90
  112.                TabIndex        =   9
  113.                Top             =   825
  114.                Width           =   3015
  115.             End
  116.             Begin CommandButton Command1 
  117.                FontBold        =   0   'False
  118.                FontItalic      =   0   'False
  119.                FontName        =   "MS Sans Serif"
  120.                FontSize        =   8.25
  121.                FontStrikethru  =   0   'False
  122.                FontUnderline   =   0   'False
  123.                Height          =   630
  124.                Index           =   2
  125.                Left            =   90
  126.                TabIndex        =   8
  127.                Top             =   1545
  128.                Width           =   3015
  129.             End
  130.             Begin CommandButton Command1 
  131.                FontBold        =   0   'False
  132.                FontItalic      =   0   'False
  133.                FontName        =   "MS Sans Serif"
  134.                FontSize        =   8.25
  135.                FontStrikethru  =   0   'False
  136.                FontUnderline   =   0   'False
  137.                Height          =   630
  138.                Index           =   3
  139.                Left            =   90
  140.                TabIndex        =   7
  141.                Top             =   2265
  142.                Width           =   3015
  143.             End
  144.          End
  145.          Begin VideoSoftElastic VSElastic5 
  146.             AutoSizeChildren=   1  'Even Horizontal
  147.             BackColor       =   &H00C0C0C0&
  148.             BevelOuter      =   1  'Raised
  149.             BevelOuterWidth =   1
  150.             Height          =   645
  151.             Left            =   0
  152.             TabIndex        =   2
  153.             Top             =   3075
  154.             Width           =   3195
  155.             Begin CommandButton Command1 
  156.                Caption         =   "A"
  157.                Height          =   465
  158.                Index           =   6
  159.                Left            =   90
  160.                TabIndex        =   5
  161.                Top             =   90
  162.                Width           =   945
  163.             End
  164.             Begin CommandButton Command1 
  165.                Caption         =   "B"
  166.                Height          =   465
  167.                Index           =   5
  168.                Left            =   1125
  169.                TabIndex        =   4
  170.                Top             =   90
  171.                Width           =   945
  172.             End
  173.             Begin CommandButton Command1 
  174.                Caption         =   "C"
  175.                Height          =   465
  176.                Index           =   4
  177.                Left            =   2160
  178.                TabIndex        =   3
  179.                Top             =   90
  180.                Width           =   945
  181.             End
  182.          End
  183.       End
  184.    End
  185. End
  186. Option Explicit
  187.  
  188. Sub Command1_Click (Index As Integer)
  189.   Dim newcolor&
  190.   Select Case Index
  191.  
  192.     Case 0  'Change to random colors
  193.       newcolor = QBColor(Rnd * 15)
  194.       VSelastic1.BackColor = newcolor
  195.       VSelastic4.BackColor = newcolor
  196.  
  197.     Case 1   'Fonts
  198.       File1.FontSize = (File1.FontSize + 2) Mod 13
  199.       Drive1.FontSize = (Drive1.FontSize + 2) Mod 13
  200.       Dir1.FontSize = (Dir1.FontSize + 2) Mod 13
  201.   End Select
  202. End Sub
  203.  
  204.